-
Notifications
You must be signed in to change notification settings - Fork 1k
Update Orca adapter to v2 pools API #2204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
The orca-dex adapter exports pools: |
|
The orca-dex adapter exports pools: |
|
hi @calintje ideally we apyBase values match your full range values, for apyBase7d you could use the 10% custom range. |
|
Hi @slasher125, thanks for having a look at the PR. I've ran the tests again and compared the values in our UI with the values of the sample output, and it seems to me that they're pretty much similar. Could you please let me know for which pools you see this discrepancy? Just as a reminder, it's important to compare the results of the sample pools returned by the tests immediately with the UI, since APY projections are sensitive to recent market movements. UI
Test Output |

Summary
This PR refreshes the
orca-dexyield adapter to use Orca’s new public v2 pools endpointChanges
v1/whirlpool/listendpoint tohttps://api.orca.so/v2/solana/poolstvlUsdc,stats['24h'/'7d'], tokens, rewards, cursor meta).minTvl=10000query param.tvlUsd,apyBase,apyReward,apyBase7d,volumeUsd1d, andvolumeUsd7dfrom the API’s fee/reward/volume stats, relying onkeepFiniteto drop invalid pools.https://www.orca.so/pools/<pool_address>.Test
npm run test --adapter=orca-dex